netsuite-js

BaseObject

declaration
BaseObject ->BaseObject

Base class for all NetSuite data types

var BaseObject = module.exports = function BaseObject() {};

getAttributes

method
BaseObject.prototype.getAttributes() ->Object

Get object's attributes

BaseObject.prototype.getAttributes = function() {
  throw new Error('Must be implemented by subclass');
};

getUnserializablePropertyNames

method
BaseObject.prototype.getUnserializablePropertyNames() ->String[]

Get names of properties which should NOT be serialized as children

BaseObject.prototype.getUnserializablePropertyNames = function() {
  return [];
};

getSOAPType

method
BaseObject.prototype.getSOAPType() ->String

Get object's SOAP type (e.g. object's XML tag name)

BaseObject.prototype.getSOAPType = function() {
  return '';
};

getXml

method
BaseObject.prototype.getXml() ->String

Get object's XML straight up. Used as last-resort workaround when
serialization fails due to bugs in node-soap.

BaseObject.prototype.getXml = function() {
  return '';
};